package com.company.dao;

import com.company.exception.DAOException;

public class UserDaoImpl extends AbstractDaoHib<User> implements UserDAO {
	@Override
	public User save(User user) throws DAOException {	
		super.save(user);														
		
		return user;
	}

	@Override
	public User findById(long id) throws DAOException {		
		return (User) super.find(User.class, id);
	}
}
